/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 23735
 * Date: 2022-09-09
 * Time: 14:42
 */
public class Main {
    public static void main(String[] args) {
        MyDoubleLinkedList mll=new MyDoubleLinkedList();
        int size=mll.size();
        System.out.println(size);
        mll.addLast(6);
        mll.addFirst(6);
        mll.addFirst(6);
        mll.addFirst(6);
        mll.addLast(6);
        mll.addLast(6);
        mll.addLast(6);
        mll.display();
        size=mll.size();
        System.out.println(size);
        mll.removeKey(6);
        mll.display();
        size=mll.size();
        System.out.println(size);
        mll.addIndex(3,999);
        mll.display();
        mll.clear();
        mll.display();
    }
}
